/**
 * Copyright 2017-2025 Evergrande Group.
 */
package com.dto;


import java.io.Serializable;

public class ResponseDto<T> implements Serializable {

    private static final long serialVersionUID = -96712436990216605L;

    private String code;
    private T data;
    private String msg;

    public String getCode() {
        return code == null ? "" : code.trim();
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return msg;
    }

    public void setMessage(String message) {
        this.msg = message;
    }

    public ResponseDto(String code, T data, String message) {
        super();
        this.code = code;
        this.data = data;
        this.msg = message;
    }

    public ResponseDto() {
        super();
    }
}
